package com.esp.commentdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.esp.commentdemo.entity.NewsComment;
import com.esp.commentdemo.util.PageQueryUtil;
import com.esp.commentdemo.util.PageResult;

/**
 * Project:spring-boot-new-publish-system-12
 * ClassName:CommentService
 * Package:com.esp.commentdemo.service
 * User:CWQ
 * Description:
 *
 * @Author 合肥-陈万琼
 * @Create 2024/5/31 23:37
 * @Version 1.0
 */
public interface CommentService extends IService<NewsComment> {
    /**
     * 添加评论
     *
     * @param newsComment
     * @return
     */
    Boolean addComment(NewsComment newsComment);

    /**
     * 后台管理系统中评论分页功能
     *
     * @param pageUtil
     * @return
     */
    PageResult getCommentsPage(PageQueryUtil pageUtil);

    /**
     * 批量审核
     *
     * @param ids
     * @return
     */
    Boolean checkDone(Integer[] ids);

    /**
     * 批量删除
     *
     * @param ids
     * @return
     */
    Boolean deleteBatch(Integer[] ids);

    Boolean thumbsUp(Long newsId);
    Boolean thumbsDown(Long newsId);
    int getThumbsdNum(Long newsId);
}